﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;

namespace PublicModelsAndEntities.Models.MaintenanceRecord
{
    public class FormDatasModel
    {
        public string[]? XAxisName { get; set; }
        public string[]? DataType { get;set; }
        public List<TypeData>? Series { get; set; }

        public FormDatasModel()
        {
            DataType = new string[100];
            Series = new List<TypeData>();
            XAxisName = new string[12];
            for(int i = 0; i < 12; i++)
            {
                XAxisName[i]= (i + 1).ToString()+"月";
            }
        }
    }
    public class TypeData
    {
        public string? Name { get; set; }
        public string? Type { get; set; }
        public int? YAxisIndex { get; set; }
        public int[]? Data { get; set; }
    }

    public class DateAndState
    {
        public DateTime Time { get; set; }
        public string? State { get; set; }
        public DateTime? Timem { get; set; }
        public DateTime? Btime { get; set; }
        public DateTime? TimemS { get; set; }
    }

    public class ValueAndLabel
    {
        public string Value { get; set; }
        public string? Label { get; set; }
        public string? ODC { get; set; }

        public ValueAndLabel(string value, string? label , string? oDC)
        {
            this.Value = value;
            this.Label = label;
            this.ODC = oDC;
        }
    }

    public class TwoDate
    {
        public DateTime? startTime { get; set; }
        public DateTime? endTime { get; set; }

    }
    public class IdAndDate
    {
        public string id { get; set; }
        public DateTime date { get; set; }
    }
    public class MRD
    {
        public DateTime Time { get; set; }
        public string? One_Dimensional_Code { get; set; }
        public string? assignPersonnel { get; set; }
        public string product_category { get; set; }
    }
}

